From: Debian Science Maintainers Date: Tue, 9 Dec 2025 11:19:37 +0000 (+0000) Subject: ignore expected DeprecationWarning X-Git-Tag: archive/raspbian/2.3.3+dfsg-3+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=b5729f851d45dc07678a8f5e0db9ee232a81938b;p=pandas.git ignore expected DeprecationWarning Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_bitwiseinversion_deprecation.patch --- diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 859cbd30..e9f7016b 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -564,7 +564,7 @@ class TestEval: def test_scalar_unary(self, engine, parser): msg = "bad operand type for unary ~: 'float'" warn = None - if PY312 and not (engine == "numexpr" and parser == "pandas"): + if PY312: warn = DeprecationWarning with pytest.raises(TypeError, match=msg): pd.eval("~1.0", engine=engine, parser=parser)